public class Test {
    public static void main(String[] args) {
        String url="http://localhost:8080/framework_war/Productgoods.goodsServlet?opr=add";
        url=url.substring(url.lastIndexOf("/"),url.lastIndexOf("."));
        System.out.println(url);
    }
}
